package com.pacai.Method;

import java.util.Scanner;

public class MethodExercise01 {
    public static void main(String[] args) {
        int a = 0b01100000000000000000000000000000;
        System.out.println(a<<2);
        IndA indA = new IndA();
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        int row = scanner.nextInt();
        int col = scanner.nextInt();
        char ch = scanner.next().charAt(0);
        if(indA.isOdd(num)){
            System.out.println("奇数");
        }else{
            System.out.println("偶数");
        }
        indA.printStar(row,col,ch);

    }
}

class IndA{
    public boolean isOdd(int num){
        return num % 2 != 0;
    }

    public void printStar(int row,int cal,int ch){
        for (int i = 0; i < row; i++) {
            for (int j = 0; j < cal; j++) {
                //System.out.printf("%c",ch);
                System.out.print((char)ch);
            }
            System.out.println();
        }
    }
}